package cc.eddic.practice.spring.dto;

import cc.eddic.practice.spring.domain.Option;
import cc.eddic.practice.spring.domain.SubCategory;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.val;
import org.springframework.beans.BeanUtils;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OptionAddRequest {

    private String answer;

    private char choice;

    private boolean isCorrect;


    public Option as(){ return new Option(this.answer, this.choice, this.isCorrect);}


}
